﻿
@*

@model MobileWebsiteGenerator.Entities.pictureGallery

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout_login.cshtml";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<link href="@Url.Content("~/Content/Css/uploadify.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(window).load(
    function () {
        $("#ImageUploader").fileUpload({
            'uploader': '/Scripts/uploader.swf',
            'cancelImg': '/Images/cancel.png',
            'buttonText': 'Select Image',
            'script': 'Upload',
            'folder': '/Uploads',
            'fileDesc': 'Image Files',
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
            'multi': true,
            'auto': true,
            'onComplete': function (event, ID, fileObj, response, data) {
                $("#ImagePath").attr("value", response);
            }
        });
    }
);
</script>
<h3>
  התמונות שלי
</h3>

 <form id="form1" method="post" action="/PictureGallery/Edit">
    <div class="form_row">
        <label>
            נתיב תמונה</label>
        <input class="text-box single-line form_input" id="ImagePath" name="ImagePath" type="text" value="@Model.ImagePath" />

       <div id="ImageUploader">
    </div>
    </div>

        @Html.HiddenFor(model => model.picture_id)
    <div class="form_row">
       <label>
        עריכת כיתוב</label>
    <input class="text-box single-line form_input" id="Caption" name="Caption" type="text" value="@Model.Caption" />
   
    
    </div>
  

<div style="margin-top: 25PX;" class="form_row">
    <input type="submit" class="form_submit" value="שלח" />
    </div>
    </form>
*@



@model MobileWebsiteGenerator.Entities.pictureGallery
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout_login.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Css/uploadify.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(window).load(
    function () {
        $("#ImageUploader").fileUpload({
            'uploader': '/Scripts/uploader.swf',
            'cancelImg': '/Images/cancel.png',
            'buttonText': 'Select Image',
            'script': '/PictureGallery/Upload',
            'folder': '@Url.Content("~/Uploads")',
            'fileDesc': 'Image Files',
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
            'multi': true,
            'auto': true,
            'onComplete': function (event, ID, fileObj, response, data) {
                $("#ImagePath").attr("value", response);
            }
        });
    }
);
</script>
<div style="float:right;width:680px;vertical-align:top;margin:0px;padding:0px;">
<a href="@Url.Action("Create", "Website", MobileWebsiteGenerator.MvcApplication._MainCustomer)" style="color:Black;" id="GoToMain" title="Go to Main page">
    <img src="@Url.Content("~/images/Arrow -Left.png")" alt="Alternate Text" /></a>
<form id="form1" method="post" action="/PictureGallery/Edit">
<div class="form_row">
   <div id="ImageUploader">
</div>
    <input class="text-box single-line form_input" id="ImagePath" name="ImagePath" type="text" value="@Model.ImagePath" />

      <label>
          נתיב תמונה</label>

   
</div>


<div class="form_row">
   
    <input class="text-box single-line form_input" id="Caption" name="Caption" type="text" value="@Model.Caption" />
    <label>
       עריכת כיתוב</label>
</div>

@Html.HiddenFor(model => model.picture_id)
<div class="form_row">
</div>

<div style="margin-top: 25PX;" class="form_row">
    <input type="submit" class="form_submits" value="שלח" />
</div>
</form>
</div>
@section MobilePreview
{
    
          @Html.Partial("_PreviewOnMobile", MobileWebsiteGenerator.MvcApplication._MainCustomer);
   
}



<style type="text/css">
input.form_submits
{
     
width: auto;
height: auto;
color: #4F4F4D;
font-size: 18px;

cursor: pointer;
float: left;
margin: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
text-align:right;

background: url('../images/arrow left.png') no-repeat 20px 20px;
border: 1px solid #DEDEDE;
background: url('../images/arrow left.png') no-repeat 20px 20px;
background-position: left center;
    
}
</style>
